﻿@using GuRenFang.Common
@model IEnumerable<GuRenFang.Service.Entity.Category>

<ul class="nav nav-tabs nav-stacked">
    @if (ViewBag.PhotoType == "婚纱")
    {
        <li><a href="@Url.Content("~/photograph-show/wedding-dress/")">
            <h4>返回到分类列表</h4>
        </a></li>
    }
    else
    {
        <li><a href="@Url.Content("~/photograph-show/portrait/")">
            <h4>返回到分类列表</h4>
        </a></li>
    }
    @foreach (var item in Model)
    {
        <li>
            @if (ViewBag.PhotoType == "婚纱")
            {
                <a id="category-@item.Id" href="@Url.Content("~/Wedding/Category?id=" + item.Id + "&name=" + Url.Encode(item.Name))">@item.Name</a>
            }
            else
            { 
                <a id="category-@item.Id" href="@Url.Content("~/Pictorial/Category?id=" + item.Id + "&name=" + Url.Encode(item.Name))">@item.Name</a>
            }
        </li>
    }
</ul>
